package com.example.demo810.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author lzh
 * @date 2020/8/10 - 14:49
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class BaseException  extends Exception{
    /**
     * 错误码
     */
    private int code;
    /**
     * 错误提示信息
     */
    private String msg;

    public BaseException(int code, String msg) {
        super();
        this.code = code;
        this.msg = msg;
    }
}
